﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Xiaov.SmartWeb.Model.Statistical.Select
{
    public class SelectFactroy
    {
        public static ISelect YfSelect;
        public static ISelect DwSelect;
        public static void InitFactroy(string bbzq)
        {
            DwSelect = new DwbmSelect();
            if (bbzq == "年度")
                YfSelect = new MonthSelect_ND(); 
            if (bbzq == "半年度")
                YfSelect = new MonthSelect_BND();
            if (bbzq == "季度")
                YfSelect = new MonthSelect_JD();
            if (bbzq == "月度")
                YfSelect = new MonthSelect_YD();
            if (bbzq == "旬度")
                YfSelect = new MonthSelect_XD();
            if (bbzq == "月报变年报")
                YfSelect = new MonthSelect_YBBNB();
        }

        public static ISelect MonthInstance()
        {
            return YfSelect;
        }

        public static ISelect DwbmInstance()
        {
            return DwSelect;
        }
    }
}
